package com.example.hello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//自动装配
@RestController
public class helloController {

    //http://localhost:8080/hello--接口
    @RequestMapping("/hello")
    public String hello(){
        //调用业务，接收前端参数
        return "hello world";
    }
}
